﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_ColumnMappingList : DatabasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            SetContentHeader();
            gvColumnMappingList.DataSource = DBData.Mappings(ConnectionId);
            gvColumnMappingList.DataBind();
        }
    }

    private void SetContentHeader()
    {
        OutlookMaster om = (OutlookMaster)Master;
        om.ContentHeader.Text = "Column mapping";
    }


    protected void gvColumnMappingList_SelectedIndexChanged(object sender, EventArgs e)
    {
        Response.Redirect(string.Format("ColumnMapping.aspx?ColumnMappingId={0}", gvColumnMappingList.SelectedValue));
    }
}